var EnemyHurt = BaseAnimate.extend({
    _isPlaying : false,
    ///////////////////////////////////////////////////////////
    ctor : function(name, parentBone){
        this._super(name, parentBone);
        return true;
    },
    movementEventCallback : function( target, type, actionName ){
        switch(type){
            case ANIMATION_TYPE.START:{
                cc.log("***Effects movementEvent start");
                break;
            }
            case ANIMATION_TYPE.END:{
                cc.log("***Effects movementEvent end");
                target._visible = false;
                target._isPlaying = false;
                break;
            }
            case ANIMATION_TYPE.LOOP_END:{
                cc.log("***Effects movementEvent loop end");
                break;
            }
        }
    },
    ///////////////////////////////////////////////////////////////////
    play : function(pos){
        this.setPosition( pos );
        if ( !this._visible ){
            this._visible = true;
        }
        this._isPlaying = true;
        this.playAction(0);
    }
});
////////////////////////////////////////////////////////////////
EnemyHurt.create = function (filename) {
    var effect = new EnemyHurt(filename);
    if (effect && effect.init(filename)) {
        return effect;
    }
    return null;
};
